package com.yl.ssm.jersey.impl;/*
package com.yl.ssm.jersey.impl;

import com.yl.ssm.jersey.IHelloJerseyService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.HashMap;
import java.util.Map;

*/
/**
 *  HelloWebService 实现类
 *
 * @Author jiangtao
 * @CreateBy 2019-01-17 5:29 PM
 * @UpdateBy jiangtao
 * @Version v1.0
 *//*

@Component
@Path("/rest")
public class HelloJerseyServiceImpl implements IHelloJerseyService {

    private static final Logger log = LoggerFactory.getLogger(HelloJerseyServiceImpl.class);

    @POST
    @Path("hello")
    @Consumes(MediaType.APPLICATION_JSON)
    @Override
    public Response sayHello() {
        return Response.ok("hello").build();
    }


    @GET
    @Path("msg/{msg}")
    @Produces(MediaType.APPLICATION_JSON)
    @Override
    public Map<String, Object> msg(@PathParam("msg")String msg) {
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("code", 200);
        map.put("message", msg);
        return map;
    }
}
*/
